package test.model.server;

import model.server.Request;
import junit.framework.TestCase;

public class RequestTest2 extends TestCase {
	public void testRequest() {
		Request request = new Request("str:cat:prov:count");
		assertNotNull(request);
	}

	public void testSearchString() {
		Request request = new Request("str:cat:prov:count");
		assertEquals("str",request.searchString());
	}

	public void testCategory() {
		Request request = new Request("str:cat:prov:count");
		assertEquals("cat",request.category());
	}

	public void testProvince() {
		Request request = new Request("str:cat:prov:count");
		assertEquals("prov",request.province());
	}

	public void testCounty() {
		Request request = new Request("str:cat:prov:count");
		assertEquals("count",request.county());
	}

}
